/*
 * @description: 
 * @Date: 2023-04-07 09:59:08
 * @example: 
 * @params: 
 */
const  options = {
    swaggerDefinition: {
      info: {
        description: 'This is a sample server',
        title: 'Mini Iot',
        version: '1.0.0'
      },
      host: 'localhost:3000',
      basePath: '/',
      produces: ['application/json', 'application/xml'],
      schemes: ['http', 'https'],
      // securityDefinitions: {
      //   JWT: {
      //     type: 'apiKey',
      //     in: 'header',
      //     name: 'Authorization',
      //     description: ''
      //   }
      // }
    },
    route: {
      url: '/swagger',
      docs: '/swagger.json' //swagger文件 api
    },
    basedir: __dirname, //app absolute path
    // files: ['./router/*.js'] //Path to the API handle folder
    files:['../../router/*.js']
  }

  module.exports = options